<?php
namespace app\api\service;

use app\api\controller\Base;
use app\api\model\Order as OrderModel;
use app\api\model\Product as ProductModel;
use app\common\model\Config as ConfigModel;
use app\api\service\OrderService;
use app\common\enum\OrderEnum;
use app\common\enum\ProductEnum;
use think\Db;
use think\Exception;
use think\Log;
use think\Request;

class SystemService extends Base
{

    // 获取系统公开设置
    public function list()
    {
        $config = [];
        $list = ConfigModel::all();
        foreach ($list as $k => $v)
        {
            if (in_array($v['name'], ['reserve_today'])) {
                $config[$v['name']] = $v['value'];
            }
        }
        return $config;
        
    }
}